package com.bestcem.xm.member.grpc.service.param.openplatform;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.bestcem.xm.member.grpc.service.param.PageParam;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/11/8 16:07
 */
@Getter
@Setter
@ToString
public class ListOpenPlatformMembersParam {
    @NotNull(message = "组织id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "组织id格式错误")
    private String orgId;

    private String userId;

    private Date startCreateTime;

    private Date endCreateTime;

    private Date startUpdateTime;

    private Date endUpdateTime;

    @Valid
    @NotNull(message = "分页参数不能为空")
    private PageParam param;
}
